package org.wang.portal.core;

public class OperationContext {
    private OperationStrategy strategy;

    public void setStrategy(OperationStrategy strategy) {
        this.strategy = strategy;
    }

    public void executeStrategy(String[] args) {
        if (strategy != null) {
            strategy.execute(args);
        } else {
            System.out.println("No strategy set.");
        }
    }
}